import { Component, EventEmitter, Input, Output } from '@angular/core';
//
@Component({
  selector: 'app-alert',
  template: ` <h1 (click)="output.next(type)">Alert {{ type }}</h1> `,
  styleUrls: ['./alert.component.scss'],
})
export class AlertComponent {
  @Input() type = 'success';
  @Output() output = new EventEmitter();
}
